.class Lcom/netease/newsreader/activity/CustomColumn$4;
.super Ljava/lang/Object;
.source "CustomColumn.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CustomColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CustomColumn;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CustomColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    .line 350
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 11
    .parameter "v"

    .prologue
    const/4 v10, 0x0

    .line 356
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$6(Lcom/netease/newsreader/activity/CustomColumn;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 357
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v4, v4, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v5, "delete from top_columns"

    invoke-virtual {v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 358
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v2, v4, :cond_2

    .line 369
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4, v10}, Lcom/netease/newsreader/activity/CustomColumn;->access$7(Lcom/netease/newsreader/activity/CustomColumn;Z)V

    .line 372
    .end local v2           #i:I
    :cond_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$8(Lcom/netease/newsreader/activity/CustomColumn;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 373
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v4, v4, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v5, "delete from more_columns"

    invoke-virtual {v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 374
    const/4 v2, 0x0

    .restart local v2       #i:I
    :goto_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v2, v4, :cond_3

    .line 385
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4, v10}, Lcom/netease/newsreader/activity/CustomColumn;->access$9(Lcom/netease/newsreader/activity/CustomColumn;Z)V

    .line 389
    .end local v2           #i:I
    :cond_1
    new-instance v3, Landroid/content/Intent;

    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    const-class v5, Lcom/netease/newsreader/activity/NewsReader;

    invoke-direct {v3, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 390
    .local v3, intent:Landroid/content/Intent;
    const/high16 v4, 0x400

    invoke-virtual {v3, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 391
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 392
    .local v0, bundle:Landroid/os/Bundle;
    const-string v4, "custom_finish"

    const-string v5, "custom_finish"

    invoke-virtual {v0, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 393
    invoke-virtual {v3, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 394
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-virtual {v4, v3}, Lcom/netease/newsreader/activity/CustomColumn;->startActivity(Landroid/content/Intent;)V

    .line 396
    return-void

    .line 360
    .end local v0           #bundle:Landroid/os/Bundle;
    .end local v3           #intent:Landroid/content/Intent;
    .restart local v2       #i:I
    :cond_2
    :try_start_0
    const-string v5, "top_columns"

    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v6, v4, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 361
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v7, "tname"

    invoke-virtual {v4, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    .line 362
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v8, "tid"

    invoke-virtual {v4, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    .line 363
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$0(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v9, "cid"

    invoke-virtual {v4, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    .line 360
    invoke-static {v5, v6, v7, v8, v4}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 358
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_0

    .line 364
    :catch_0
    move-exception v1

    .line 366
    .local v1, e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_2

    .line 376
    .end local v1           #e:Ljava/lang/Exception;
    :cond_3
    :try_start_1
    const-string v5, "more_columns"

    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    iget-object v6, v4, Lcom/netease/newsreader/activity/CustomColumn;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 377
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v7, "tname"

    invoke-virtual {v4, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    .line 378
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v8, "tid"

    invoke-virtual {v4, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v8

    .line 379
    iget-object v4, p0, Lcom/netease/newsreader/activity/CustomColumn$4;->this$0:Lcom/netease/newsreader/activity/CustomColumn;

    invoke-static {v4}, Lcom/netease/newsreader/activity/CustomColumn;->access$1(Lcom/netease/newsreader/activity/CustomColumn;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    const-string v9, "cid"

    invoke-virtual {v4, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    .line 376
    invoke-static {v5, v6, v7, v8, v4}, Lcom/netease/newsreader/util/Tools;->insertDataToDB(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 374
    :goto_3
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_1

    .line 380
    :catch_1
    move-exception v1

    .line 382
    .restart local v1       #e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3
.end method
